package com.sxkf.template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品拼团
 * </p>
 *
 * @author 杨玉龙
 * @since 2024-12-02 18:10:34
 */
@Data
@TableName("t_spell_out")
@ApiModel(value = "SpellOut对象", description = "商品拼团")
public class SpellOut implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId("id")
    private String id;

    @ApiModelProperty("商品id")
    @TableField("product_id")
    private String productId;

    @ApiModelProperty("创建者id")
    @TableField("create_id")
    private String createId;

    @ApiModelProperty("加入的用户id列表")
    @TableField("join_user_list")
    private String joinUserList;

    @ApiModelProperty("拼成需要的人数")
    @TableField("need_count")
    private Integer needCount;

    @ApiModelProperty("参与人数")
    @TableField("join_count")
    private Integer joinCount;

    @ApiModelProperty("状态(0=未拼成，1=已拼成，2=已过期)")
    @TableField("state")
    private String state;

    @ApiModelProperty("结束时间")
    @TableField("end_time")
    private Date endTime;

      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

      @TableField(exist = false)
      private String phone;

      @TableField(exist = false)
      private String avatar;

    @ApiModelProperty("剩余人数")
    @TableField(exist = false)
    private Integer leaveCount;

    @ApiModelProperty("剩余时间 毫秒")
    @TableField(exist = false)
    private Long lastTime;


}
